package org.wkg.lesson06;

public class SingletDCL {
    private static volatile SingletDCL instance = null;

    private void SingletDCL() {
    }


    public static SingletDCL getInstance() {
        if (instance == null) {
            synchronized (SingletDCL.class) {
                if (instance == null) {
                    instance = new SingletDCL();
                }
            }
        }
        return instance;
    }
}
